import useCommonStore from "@/store/common"

const calElementSize = () => {
	let windowInfo = uni.getWindowInfo()
	const commonStore = useCommonStore()
	commonStore.updateStatusBarHeight(windowInfo.statusBarHeight || 0)
	commonStore.updateSafeAreaBottomHeight(windowInfo.safeAreaInsets?.bottom || 0)
}

export default calElementSize
